Skip to content

Remove unused 3rd argument in assert.strictEqual()#22113

Closed
yahavf6 wants to merge 1 commit intonodejs:masterfrom
yahavf6:yahavf6-removeUnusedSSrtingError040818
Closed

Remove unused 3rd argument in assert.strictEqual()#22113
yahavf6 wants to merge 1 commit intonodejs:masterfrom
yahavf6:yahavf6-removeUnusedSSrtingError040818

Conversation

@yahavf6
Copy link
Contributor

@yahavf6 yahavf6 commented Aug 3, 2018

Line 9 contains a call to assert.strictEqual(). It has a string literal as the third argument. Unfortunately, that means that if there is an AssertionError, the value of status (the first argument) will not be reported. The third argument here is not adding any value (and in fact is reporting the wrong thing in the event of an AssertionError) so removed it.

Checklist
  • [x ] make -j4 test (UNIX), or vcbuild test (Windows) passes
  • [x ] commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. node-api Issues and PRs related to the Node-API. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants